import proFetch from "../../../../../public/functions/project-fetch";

/**
 * 合同变更
 * @param pk_org
 * @param psnjobs  合同主键已‘,’分隔
 * @param querylast  仅查最新记录
 * @returns {Promise<any>}
 * @constructor
 */
export default function ChangeCenterAction(pk_org, psnjobs, querylast=false) {
    const postData = {
        pk_org,
        psnjobs,
        querylast
    };

    return new Promise(((resolve, reject) => {
            proFetch({
                url: '/nccloud/hrcm/center/ChangeCenterAction.do',
                body: postData,
            })
                .then((res) => {
                    if (res.success) {
                        resolve(res)
                    }
                });
        })
    );
}